.class public Lcom/brixd/niceapp/model/CategoryAppModel;
.super Lcom/zuimeia/suite/expandablecell/listview/ExpandableListItem;
.source "CategoryAppModel.java"


# static fields
.field private static final serialVersionUID:J = 0x601c2a3700499e67L


# instance fields
.field public appId:I

.field public appName:Ljava/lang/String;

.field public downloadSources:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/brixd/niceapp/model/DownloadSource;",
            ">;"
        }
    .end annotation
.end field

.field public downloadUrls:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field public iconUrl:Ljava/lang/String;

.field public isApp:I

.field public minSdkVer:I

.field public packageName:Ljava/lang/String;

.field public subTitle:Ljava/lang/String;

.field public type:Ljava/lang/String;


# direct methods
.method public constructor <init>(I)V
    .registers 2
    .param p1, "collapsedHeight"    # I

    .prologue
    .line 23
    invoke-direct {p0, p1}, Lcom/zuimeia/suite/expandablecell/listview/ExpandableListItem;-><init>(I)V

    .line 24
    return-void
.end method

.method public static initDownloadItems(Ljava/util/HashMap;Lcom/brixd/niceapp/model/CategoryModel;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Ljava/util/List;
    .registers 10
    .param p1, "categoryModel"    # Lcom/brixd/niceapp/model/CategoryModel;
    .param p2, "appId"    # I
    .param p3, "appName"    # Ljava/lang/String;
    .param p4, "packageName"    # Ljava/lang/String;
    .param p5, "fromType"    # Ljava/lang/String;
    .param p6, "isXiaomiMarketInstalled"    # Z
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;",
            "Lcom/brixd/niceapp/model/CategoryModel;",
            "I",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Z)",
            "Ljava/util/List",
            "<",
            "Lcom/brixd/niceapp/model/DownloadSource;",
            ">;"
        }
    .end annotation

    .prologue
    .line 104
    .local p0, "downloadUrls":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 106
    .local v0, "downloadSources":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/model/DownloadSource;>;"
    const-string v2, "GooglePlay"

    invoke-virtual {p0, v2}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_38

    .line 107
    new-instance v1, Lcom/brixd/niceapp/model/DownloadSource;

    invoke-direct {v1}, Lcom/brixd/niceapp/model/DownloadSource;-><init>()V

    .line 108
    .local v1, "item":Lcom/brixd/niceapp/model/DownloadSource;
    const v2, 0x7f02011f

    iput v2, v1, Lcom/brixd/niceapp/model/DownloadSource;->bgResId:I

    .line 109
    sget-object v2, Lcom/brixd/niceapp/activity/fragment/DownloadDialog$DownloadType;->GooglePlay:Lcom/brixd/niceapp/activity/fragment/DownloadDialog$DownloadType;

    iput-object v2, v1, Lcom/brixd/niceapp/model/DownloadSource;->type:Lcom/brixd/niceapp/activity/fragment/DownloadDialog$DownloadType;

    .line 110
    const-string v2, "GooglePlay"

    invoke-virtual {p0, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    iput-object v2, v1, Lcom/brixd/niceapp/model/DownloadSource;->url:Ljava/lang/String;

    .line 111
    iput-object p4, v1, Lcom/brixd/niceapp/model/DownloadSource;->packageName:Ljava/lang/String;

    .line 112
    iput-object p3, v1, Lcom/brixd/niceapp/model/DownloadSource;->appName:Ljava/lang/String;

    .line 113
    iput p2, v1, Lcom/brixd/niceapp/model/DownloadSource;->appId:I

    .line 114
    iput-object p5, v1, Lcom/brixd/niceapp/model/DownloadSource;->fromType:Ljava/lang/String;

    .line 115
    iget v2, p1, Lcom/brixd/niceapp/model/CategoryModel;->cid:I

    iput v2, v1, Lcom/brixd/niceapp/model/DownloadSource;->categoryId:I

    .line 116
    iget-object v2, p1, Lcom/brixd/niceapp/model/CategoryModel;->categoryName:Ljava/lang/String;

    iput-object v2, v1, Lcom/brixd/niceapp/model/DownloadSource;->categoryName:Ljava/lang/String;

    .line 117
    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 120
    .end local v1    # "item":Lcom/brixd/niceapp/model/DownloadSource;
    :cond_38
    const-string v2, "Wandoujia"

    invoke-virtual {p0, v2}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_6b

    .line 121
    new-instance v1, Lcom/brixd/niceapp/model/DownloadSource;

    invoke-direct {v1}, Lcom/brixd/niceapp/model/DownloadSource;-><init>()V

    .line 122
    .restart local v1    # "item":Lcom/brixd/niceapp/model/DownloadSource;
    const v2, 0x7f020128

    iput v2, v1, Lcom/brixd/niceapp/model/DownloadSource;->bgResId:I

    .line 123
    sget-object v2, Lcom/brixd/niceapp/activity/fragment/DownloadDialog$DownloadType;->Wandoujia:Lcom/brixd/niceapp/activity/fragment/DownloadDialog$DownloadType;

    iput-object v2, v1, Lcom/brixd/niceapp/model/DownloadSource;->type:Lcom/brixd/niceapp/activity/fragment/DownloadDialog$DownloadType;

    .line 124
    const-string v2, "Wandoujia"

    invoke-virtual {p0, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    iput-object v2, v1, Lcom/brixd/niceapp/model/DownloadSource;->url:Ljava/lang/String;

    .line 125
    iput-object p4, v1, Lcom/brixd/niceapp/model/DownloadSource;->packageName:Ljava/lang/String;

    .line 126
    iput-object p3, v1, Lcom/brixd/niceapp/model/DownloadSource;->appName:Ljava/lang/String;

    .line 127
    iput p2, v1, Lcom/brixd/niceapp/model/DownloadSource;->appId:I

    .line 128
    iput-object p5, v1, Lcom/brixd/niceapp/model/DownloadSource;->fromType:Ljava/lang/String;

    .line 129
    iget v2, p1, Lcom/brixd/niceapp/model/CategoryModel;->cid:I

    iput v2, v1, Lcom/brixd/niceapp/model/DownloadSource;->categoryId:I

    .line 130
    iget-object v2, p1, Lcom/brixd/niceapp/model/CategoryModel;->categoryName:Ljava/lang/String;

    iput-object v2, v1, Lcom/brixd/niceapp/model/DownloadSource;->categoryName:Ljava/lang/String;

    .line 131
    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 134
    .end local v1    # "item":Lcom/brixd/niceapp/model/DownloadSource;
    :cond_6b
    if-eqz p6, :cond_98

    invoke-virtual {p0}, Ljava/util/HashMap;->isEmpty()Z

    move-result v2

    if-nez v2, :cond_98

    .line 135
    new-instance v1, Lcom/brixd/niceapp/model/DownloadSource;

    invoke-direct {v1}, Lcom/brixd/niceapp/model/DownloadSource;-><init>()V

    .line 136
    .restart local v1    # "item":Lcom/brixd/niceapp/model/DownloadSource;
    const v2, 0x7f02012c

    iput v2, v1, Lcom/brixd/niceapp/model/DownloadSource;->bgResId:I

    .line 137
    sget-object v2, Lcom/brixd/niceapp/activity/fragment/DownloadDialog$DownloadType;->Xiaomi:Lcom/brixd/niceapp/activity/fragment/DownloadDialog$DownloadType;

    iput-object v2, v1, Lcom/brixd/niceapp/model/DownloadSource;->type:Lcom/brixd/niceapp/activity/fragment/DownloadDialog$DownloadType;

    .line 138
    const-string v2, "http://www.zuimeia.com"

    iput-object v2, v1, Lcom/brixd/niceapp/model/DownloadSource;->url:Ljava/lang/String;

    .line 139
    iput-object p4, v1, Lcom/brixd/niceapp/model/DownloadSource;->packageName:Ljava/lang/String;

    .line 140
    iput-object p3, v1, Lcom/brixd/niceapp/model/DownloadSource;->appName:Ljava/lang/String;

    .line 141
    iput p2, v1, Lcom/brixd/niceapp/model/DownloadSource;->appId:I

    .line 142
    iput-object p5, v1, Lcom/brixd/niceapp/model/DownloadSource;->fromType:Ljava/lang/String;

    .line 143
    iget v2, p1, Lcom/brixd/niceapp/model/CategoryModel;->cid:I

    iput v2, v1, Lcom/brixd/niceapp/model/DownloadSource;->categoryId:I

    .line 144
    iget-object v2, p1, Lcom/brixd/niceapp/model/CategoryModel;->categoryName:Ljava/lang/String;

    iput-object v2, v1, Lcom/brixd/niceapp/model/DownloadSource;->categoryName:Ljava/lang/String;

    .line 145
    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 148
    .end local v1    # "item":Lcom/brixd/niceapp/model/DownloadSource;
    :cond_98
    const-string v2, "Direct"

    invoke-virtual {p0, v2}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_cb

    .line 149
    new-instance v1, Lcom/brixd/niceapp/model/DownloadSource;

    invoke-direct {v1}, Lcom/brixd/niceapp/model/DownloadSource;-><init>()V

    .line 150
    .restart local v1    # "item":Lcom/brixd/niceapp/model/DownloadSource;
    const v2, 0x7f02011c

    iput v2, v1, Lcom/brixd/niceapp/model/DownloadSource;->bgResId:I

    .line 151
    sget-object v2, Lcom/brixd/niceapp/activity/fragment/DownloadDialog$DownloadType;->Direct:Lcom/brixd/niceapp/activity/fragment/DownloadDialog$DownloadType;

    iput-object v2, v1, Lcom/brixd/niceapp/model/DownloadSource;->type:Lcom/brixd/niceapp/activity/fragment/DownloadDialog$DownloadType;

    .line 152
    const-string v2, "Direct"

    invoke-virtual {p0, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    iput-object v2, v1, Lcom/brixd/niceapp/model/DownloadSource;->url:Ljava/lang/String;

    .line 153
    iput-object p4, v1, Lcom/brixd/niceapp/model/DownloadSource;->packageName:Ljava/lang/String;

    .line 154
    iput-object p3, v1, Lcom/brixd/niceapp/model/DownloadSource;->appName:Ljava/lang/String;

    .line 155
    iput p2, v1, Lcom/brixd/niceapp/model/DownloadSource;->appId:I

    .line 156
    iput-object p5, v1, Lcom/brixd/niceapp/model/DownloadSource;->fromType:Ljava/lang/String;

    .line 157
    iget v2, p1, Lcom/brixd/niceapp/model/CategoryModel;->cid:I

    iput v2, v1, Lcom/brixd/niceapp/model/DownloadSource;->categoryId:I

    .line 158
    iget-object v2, p1, Lcom/brixd/niceapp/model/CategoryModel;->categoryName:Ljava/lang/String;

    iput-object v2, v1, Lcom/brixd/niceapp/model/DownloadSource;->categoryName:Ljava/lang/String;

    .line 159
    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 162
    .end local v1    # "item":Lcom/brixd/niceapp/model/DownloadSource;
    :cond_cb
    return-object v0
.end method

.method public static parseCategoryAppModel(Lcom/brixd/niceapp/model/CategoryModel;Lorg/json/JSONArray;Z)Ljava/util/ArrayList;
    .registers 24
    .param p0, "categoryModel"    # Lcom/brixd/niceapp/model/CategoryModel;
    .param p1, "jsonArray"    # Lorg/json/JSONArray;
    .param p2, "withPadding"    # Z
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/brixd/niceapp/model/CategoryModel;",
            "Lorg/json/JSONArray;",
            "Z)",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/brixd/niceapp/model/CategoryAppModel;",
            ">;"
        }
    .end annotation

    .prologue
    .line 32
    const/4 v7, 0x0

    .line 33
    .local v7, "isXiaomiMarketInstalled":Z
    invoke-static {}, Lcom/brixd/niceapp/application/NiceAppApplication;->getMyApplication()Lcom/brixd/niceapp/application/NiceAppApplication;

    move-result-object v2

    if-eqz v2, :cond_11

    .line 34
    invoke-static {}, Lcom/brixd/niceapp/application/NiceAppApplication;->getMyApplication()Lcom/brixd/niceapp/application/NiceAppApplication;

    move-result-object v2

    const-string v3, "com.xiaomi.market"

    invoke-static {v2, v3}, Lcom/zuiapps/suite/utils/app/AppUtil;->isAppInstalled(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v7

    .line 37
    :cond_11
    invoke-static {}, Lcom/brixd/niceapp/application/NiceAppApplication;->getMyApplication()Lcom/brixd/niceapp/application/NiceAppApplication;

    move-result-object v2

    invoke-virtual {v2}, Lcom/brixd/niceapp/application/NiceAppApplication;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f09006d

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v11

    .line 38
    .local v11, "collapsedH":I
    invoke-static {}, Lcom/brixd/niceapp/application/NiceAppApplication;->getMyApplication()Lcom/brixd/niceapp/application/NiceAppApplication;

    move-result-object v2

    invoke-virtual {v2}, Lcom/brixd/niceapp/application/NiceAppApplication;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f09000c

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v19

    .line 39
    .local v19, "paddingTop":I
    new-instance v9, Ljava/util/ArrayList;

    invoke-direct {v9}, Ljava/util/ArrayList;-><init>()V

    .line 40
    .local v9, "categoryAppModels":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/brixd/niceapp/model/CategoryAppModel;>;"
    invoke-virtual/range {p1 .. p1}, Lorg/json/JSONArray;->length()I

    move-result v20

    .line 41
    .local v20, "totalCount":I
    const/4 v13, 0x0

    .local v13, "i":I
    :goto_39
    move/from16 v0, v20

    if-ge v13, v0, :cond_15f

    .line 42
    move-object/from16 v0, p1

    invoke-virtual {v0, v13}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;

    move-result-object v16

    .line 43
    .local v16, "jsonApp":Lorg/json/JSONObject;
    move v10, v11

    .line 44
    .local v10, "collapseCellHeight":I
    if-eqz p2, :cond_4a

    .line 45
    if-nez v13, :cond_f4

    .line 46
    add-int v10, v11, v19

    .line 52
    :cond_4a
    :goto_4a
    new-instance v8, Lcom/brixd/niceapp/model/CategoryAppModel;

    invoke-direct {v8, v10}, Lcom/brixd/niceapp/model/CategoryAppModel;-><init>(I)V

    .line 53
    .local v8, "categoryAppModel":Lcom/brixd/niceapp/model/CategoryAppModel;
    const-string v2, "id"

    move-object/from16 v0, v16

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v2

    iput v2, v8, Lcom/brixd/niceapp/model/CategoryAppModel;->appId:I

    .line 54
    const-string v2, "title"

    move-object/from16 v0, v16

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v8, Lcom/brixd/niceapp/model/CategoryAppModel;->appName:Ljava/lang/String;

    .line 55
    const-string v2, "sub_title"

    move-object/from16 v0, v16

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v8, Lcom/brixd/niceapp/model/CategoryAppModel;->subTitle:Ljava/lang/String;

    .line 56
    const-string v2, "min_sdk_version"

    move-object/from16 v0, v16

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v2

    if-nez v2, :cond_fa

    const/4 v2, -0x1

    :goto_78
    iput v2, v8, Lcom/brixd/niceapp/model/CategoryAppModel;->minSdkVer:I

    .line 57
    const-string v2, "is_app"

    move-object/from16 v0, v16

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v2

    iput v2, v8, Lcom/brixd/niceapp/model/CategoryAppModel;->isApp:I

    .line 58
    const-string v2, "icon_url"

    move-object/from16 v0, v16

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v8, Lcom/brixd/niceapp/model/CategoryAppModel;->iconUrl:Ljava/lang/String;

    .line 59
    const-string v2, "type"

    move-object/from16 v0, v16

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v8, Lcom/brixd/niceapp/model/CategoryAppModel;->type:Ljava/lang/String;

    .line 60
    const-string v2, "package_name"

    move-object/from16 v0, v16

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v8, v2}, Lcom/brixd/niceapp/model/CategoryAppModel;->setPackageName(Ljava/lang/String;)V

    .line 63
    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    .line 64
    .local v1, "downloadUrls":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    const-string v2, "download_url"

    move-object/from16 v0, v16

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    .line 65
    .local v12, "downloadUrl":Ljava/lang/String;
    invoke-static {v12}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_bb

    .line 66
    const-string v2, "GooglePlay"

    invoke-virtual {v1, v2, v12}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 68
    :cond_bb
    const-string v2, "other_download_url"

    move-object/from16 v0, v16

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v17

    .line 69
    .local v17, "jsonDownloadArray":Lorg/json/JSONArray;
    const/4 v14, 0x0

    .local v14, "j":I
    :goto_c4
    invoke-virtual/range {v17 .. v17}, Lorg/json/JSONArray;->length()I

    move-result v2

    if-ge v14, v2, :cond_146

    .line 70
    move-object/from16 v0, v17

    invoke-virtual {v0, v14}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;

    move-result-object v15

    .line 71
    .local v15, "joDownload":Lorg/json/JSONObject;
    const-string v2, "app_market_name"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v18

    .line 72
    .local v18, "marketName":Ljava/lang/String;
    const-string v2, "direct"

    move-object/from16 v0, v18

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_104

    .line 73
    const-string v2, "download_url"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    .line 74
    invoke-static {v12}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_f1

    .line 75
    const-string v2, "Direct"

    invoke-virtual {v1, v2, v12}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 69
    :cond_f1
    :goto_f1
    add-int/lit8 v14, v14, 0x1

    goto :goto_c4

    .line 47
    .end local v1    # "downloadUrls":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    .end local v8    # "categoryAppModel":Lcom/brixd/niceapp/model/CategoryAppModel;
    .end local v12    # "downloadUrl":Ljava/lang/String;
    .end local v14    # "j":I
    .end local v15    # "joDownload":Lorg/json/JSONObject;
    .end local v17    # "jsonDownloadArray":Lorg/json/JSONArray;
    .end local v18    # "marketName":Ljava/lang/String;
    :cond_f4
    add-int/lit8 v2, v20, -0x1

    if-ne v13, v2, :cond_4a

    goto/16 :goto_4a

    .line 56
    .restart local v8    # "categoryAppModel":Lcom/brixd/niceapp/model/CategoryAppModel;
    :cond_fa
    const-string v2, "min_sdk_version"

    move-object/from16 v0, v16

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v2

    goto/16 :goto_78

    .line 77
    .restart local v1    # "downloadUrls":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    .restart local v12    # "downloadUrl":Ljava/lang/String;
    .restart local v14    # "j":I
    .restart local v15    # "joDownload":Lorg/json/JSONObject;
    .restart local v17    # "jsonDownloadArray":Lorg/json/JSONArray;
    .restart local v18    # "marketName":Ljava/lang/String;
    :cond_104
    const-string v2, "wandoujia"

    move-object/from16 v0, v18

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_120

    .line 78
    const-string v2, "download_url"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    .line 79
    invoke-static {v12}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_f1

    .line 80
    const-string v2, "Wandoujia"

    invoke-virtual {v1, v2, v12}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_f1

    .line 83
    :cond_120
    iget-object v2, v8, Lcom/brixd/niceapp/model/CategoryAppModel;->type:Ljava/lang/String;

    const-string v3, "zuimei.community"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_f1

    .line 84
    const-string v2, "googleplay"

    move-object/from16 v0, v18

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_f1

    .line 85
    const-string v2, "download_url"

    invoke-virtual {v15, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    .line 86
    invoke-static {v12}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_f1

    .line 87
    const-string v2, "GooglePlay"

    invoke-virtual {v1, v2, v12}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_f1

    .line 93
    .end local v15    # "joDownload":Lorg/json/JSONObject;
    .end local v18    # "marketName":Ljava/lang/String;
    :cond_146
    iput-object v1, v8, Lcom/brixd/niceapp/model/CategoryAppModel;->downloadUrls:Ljava/util/HashMap;

    .line 94
    iget v3, v8, Lcom/brixd/niceapp/model/CategoryAppModel;->appId:I

    iget-object v4, v8, Lcom/brixd/niceapp/model/CategoryAppModel;->appName:Ljava/lang/String;

    iget-object v5, v8, Lcom/brixd/niceapp/model/CategoryAppModel;->packageName:Ljava/lang/String;

    iget-object v6, v8, Lcom/brixd/niceapp/model/CategoryAppModel;->type:Ljava/lang/String;

    move-object/from16 v2, p0

    invoke-static/range {v1 .. v7}, Lcom/brixd/niceapp/model/CategoryAppModel;->initDownloadItems(Ljava/util/HashMap;Lcom/brixd/niceapp/model/CategoryModel;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Ljava/util/List;

    move-result-object v2

    iput-object v2, v8, Lcom/brixd/niceapp/model/CategoryAppModel;->downloadSources:Ljava/util/List;

    .line 97
    invoke-virtual {v9, v8}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 41
    add-int/lit8 v13, v13, 0x1

    goto/16 :goto_39

    .line 99
    .end local v1    # "downloadUrls":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    .end local v8    # "categoryAppModel":Lcom/brixd/niceapp/model/CategoryAppModel;
    .end local v10    # "collapseCellHeight":I
    .end local v12    # "downloadUrl":Ljava/lang/String;
    .end local v14    # "j":I
    .end local v16    # "jsonApp":Lorg/json/JSONObject;
    .end local v17    # "jsonDownloadArray":Lorg/json/JSONArray;
    :cond_15f
    return-object v9
.end method


# virtual methods
.method public setPackageName(Ljava/lang/String;)V
    .registers 3
    .param p1, "packageName"    # Ljava/lang/String;

    .prologue
    .line 166
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_8

    .line 167
    const-string p1, "unknown"

    .line 169
    :cond_8
    iput-object p1, p0, Lcom/brixd/niceapp/model/CategoryAppModel;->packageName:Ljava/lang/String;

    .line 170
    return-void
.end method
